<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>S110_nRF51822/Include/nordic_common.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css" />
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="alias.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="alias.js"></script>

<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>


<script type="text/javascript">
  jQuery(document).ready(function () {
    if(gref){ // Number all _img and _table classes
      gref();
    }
  });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->

<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">nRF51822 BLE SDK
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('nordic__common_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">S110_nRF51822/Include/nordic_common.h</div>  </div>
</div>
<div class="contents">
<a href="nordic__common_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* Copyright (c) 2008 Nordic Semiconductor. All Rights Reserved.</span>
<a name="l00002"></a>00002 <span class="comment"> *</span>
<a name="l00003"></a>00003 <span class="comment"> * The information contained herein is property of Nordic Semiconductor ASA.</span>
<a name="l00004"></a>00004 <span class="comment"> * Terms and conditions of usage are described in detail in NORDIC</span>
<a name="l00005"></a>00005 <span class="comment"> * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. </span>
<a name="l00006"></a>00006 <span class="comment"> *</span>
<a name="l00007"></a>00007 <span class="comment"> * Licensees are granted free, non-transferable use of the information. NO</span>
<a name="l00008"></a>00008 <span class="comment"> * WARRANTY of ANY KIND is provided. This heading must NOT be removed from</span>
<a name="l00009"></a>00009 <span class="comment"> * the file.</span>
<a name="l00010"></a>00010 <span class="comment"> *</span>
<a name="l00011"></a>00011 <span class="comment"> * $LastChangedRevision: 4229 $</span>
<a name="l00012"></a>00012 <span class="comment"> */</span> 
<a name="l00013"></a>00013 
<a name="l00018"></a>00018 <span class="preprocessor">#ifndef NORDIC_COMMON_H__</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span><span class="preprocessor">#define NORDIC_COMMON_H__</span>
<a name="l00020"></a>00020 <span class="preprocessor"></span>
<a name="l00022"></a>00022 <span class="comment">//lint -emacro((572),SWAP) // Suppress warning 572 &quot;Excessive shift value&quot;</span>
<a name="l00023"></a><a class="code" href="nordic__common_8h.html#a9913231a3a57676d858f8f5d699bff09">00023</a> <span class="preprocessor">#define SWAP(x) ((((x)&amp;0xFF)&lt;&lt;8)|(((x)&gt;&gt;8)&amp;0xFF))</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span>
<a name="l00026"></a><a class="code" href="nordic__common_8h.html#a9c836be4f9864747a0b7cbc120b07454">00026</a> <span class="preprocessor">#define MSB(a) (((a) &amp; 0xFF00) &gt;&gt; 8)</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span>
<a name="l00028"></a><a class="code" href="nordic__common_8h.html#a08c8fa5d7c87837efc8756cc525c915e">00028</a> <span class="preprocessor">#define LSB(a) ((a) &amp; 0xFF)</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span>
<a name="l00031"></a><a class="code" href="nordic__common_8h.html#a3acffbd305ee72dcd4593c0d8af64a4f">00031</a> <span class="preprocessor">#define MIN(a, b) ((a) &lt; (b) ? (a) : (b))</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span>
<a name="l00033"></a><a class="code" href="nordic__common_8h.html#afa99ec4acc4ecb2dc3c2d05da15d0e3f">00033</a> <span class="preprocessor">#define MAX(a, b) ((a) &lt; (b) ? (b) : (a))</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span>
<a name="l00035"></a><a class="code" href="nordic__common_8h.html#add6d2693f5d356b091088437148f939b">00035</a> <span class="preprocessor">#define BIT_0 0x01 </span>
<a name="l00036"></a><a class="code" href="nordic__common_8h.html#aec9fa7211b7c9a686f2cd522cad7989d">00036</a> <span class="preprocessor">#define BIT_1 0x02 </span>
<a name="l00037"></a><a class="code" href="nordic__common_8h.html#ab94e068b5073d729aad6b2aeb613916c">00037</a> <span class="preprocessor">#define BIT_2 0x04 </span>
<a name="l00038"></a><a class="code" href="nordic__common_8h.html#a2cad0186598ab53983a3bca9b09b0a51">00038</a> <span class="preprocessor">#define BIT_3 0x08 </span>
<a name="l00039"></a><a class="code" href="nordic__common_8h.html#a3506434dff748a6be0d75a338a95e673">00039</a> <span class="preprocessor">#define BIT_4 0x10 </span>
<a name="l00040"></a><a class="code" href="nordic__common_8h.html#aae7fda97814f05bfe68c0f6bb2ef9f11">00040</a> <span class="preprocessor">#define BIT_5 0x20 </span>
<a name="l00041"></a><a class="code" href="nordic__common_8h.html#a7ecb78fe8c01d9722a06f10691495309">00041</a> <span class="preprocessor">#define BIT_6 0x40 </span>
<a name="l00042"></a><a class="code" href="nordic__common_8h.html#a4ad58adf84157aebea2a98cc9402212a">00042</a> <span class="preprocessor">#define BIT_7 0x80 </span>
<a name="l00043"></a><a class="code" href="nordic__common_8h.html#ad368b88fcb5547c245121a4533e9f858">00043</a> <span class="preprocessor">#define BIT_8 0x0100 </span>
<a name="l00044"></a><a class="code" href="nordic__common_8h.html#a3b5258d1a8c72195f5d01bf7f0455f11">00044</a> <span class="preprocessor">#define BIT_9 0x0200 </span>
<a name="l00045"></a><a class="code" href="nordic__common_8h.html#a68c53eefb39121d3abb4967a2ac5c683">00045</a> <span class="preprocessor">#define BIT_10 0x0400 </span>
<a name="l00046"></a><a class="code" href="nordic__common_8h.html#a635fff3e12ecbdf623544d1732415ffb">00046</a> <span class="preprocessor">#define BIT_11 0x0800 </span>
<a name="l00047"></a><a class="code" href="nordic__common_8h.html#a0ba5b67de2f048ed69dd42be5cf509d4">00047</a> <span class="preprocessor">#define BIT_12 0x1000 </span>
<a name="l00048"></a><a class="code" href="nordic__common_8h.html#ada1400714b9061183d116797f8775dce">00048</a> <span class="preprocessor">#define BIT_13 0x2000 </span>
<a name="l00049"></a><a class="code" href="nordic__common_8h.html#af50496d04a614ddef31ba9b1a8a92242">00049</a> <span class="preprocessor">#define BIT_14 0x4000 </span>
<a name="l00050"></a><a class="code" href="nordic__common_8h.html#a7611ad2315432d0865055d2ff3066968">00050</a> <span class="preprocessor">#define BIT_15 0x8000 </span>
<a name="l00051"></a><a class="code" href="nordic__common_8h.html#aa5b535cdb2b0b6509a32f8a02ef64719">00051</a> <span class="preprocessor">#define BIT_16 0x00010000 </span>
<a name="l00052"></a><a class="code" href="nordic__common_8h.html#a719c9089fcb3f58137f378a921628d0a">00052</a> <span class="preprocessor">#define BIT_17 0x00020000 </span>
<a name="l00053"></a><a class="code" href="nordic__common_8h.html#af07a5c39b3919b991251d343f923a873">00053</a> <span class="preprocessor">#define BIT_18 0x00040000 </span>
<a name="l00054"></a><a class="code" href="nordic__common_8h.html#aba36883fad68c8173b9593446e434df8">00054</a> <span class="preprocessor">#define BIT_19 0x00080000 </span>
<a name="l00055"></a><a class="code" href="nordic__common_8h.html#ac9001d4bab72ac449e9d77898e7281f0">00055</a> <span class="preprocessor">#define BIT_20 0x00100000 </span>
<a name="l00056"></a><a class="code" href="nordic__common_8h.html#ae270a65bf72d98073b3ffd596f8a718b">00056</a> <span class="preprocessor">#define BIT_21 0x00200000 </span>
<a name="l00057"></a><a class="code" href="nordic__common_8h.html#ac479e79f083a12cc19dc36620b7d9113">00057</a> <span class="preprocessor">#define BIT_22 0x00400000 </span>
<a name="l00058"></a><a class="code" href="nordic__common_8h.html#a70b366d9fe3292f07acf7be57f25a482">00058</a> <span class="preprocessor">#define BIT_23 0x00800000 </span>
<a name="l00059"></a><a class="code" href="nordic__common_8h.html#a2811bef23f495846be6b3321f4707d4c">00059</a> <span class="preprocessor">#define BIT_24 0x01000000 </span>
<a name="l00060"></a><a class="code" href="nordic__common_8h.html#aec6d87ecf2b28eaed2d0ef3e670d562f">00060</a> <span class="preprocessor">#define BIT_25 0x02000000 </span>
<a name="l00061"></a><a class="code" href="nordic__common_8h.html#aed69321efb136ed29cce0586ce1ab873">00061</a> <span class="preprocessor">#define BIT_26 0x04000000 </span>
<a name="l00062"></a><a class="code" href="nordic__common_8h.html#a49f55567349ae6b9aa15ce9da1a4f175">00062</a> <span class="preprocessor">#define BIT_27 0x08000000 </span>
<a name="l00063"></a><a class="code" href="nordic__common_8h.html#a9a170db0113ab9f9a23367ae7dfbfe3f">00063</a> <span class="preprocessor">#define BIT_28 0x10000000 </span>
<a name="l00064"></a><a class="code" href="nordic__common_8h.html#a150f7ce50b60a7baaafabf8378e74ceb">00064</a> <span class="preprocessor">#define BIT_29 0x20000000 </span>
<a name="l00065"></a><a class="code" href="nordic__common_8h.html#a48d9a21ee4088feb4b1743beac4b4a32">00065</a> <span class="preprocessor">#define BIT_30 0x40000000 </span>
<a name="l00066"></a><a class="code" href="nordic__common_8h.html#ac397885e78e2ad51c518b95195a2a57e">00066</a> <span class="preprocessor">#define BIT_31 0x80000000 </span>
<a name="l00068"></a>00068 <span class="preprocessor">#define UNUSED_VARIABLE(X)  ((void)(X))</span>
<a name="l00069"></a>00069 <span class="preprocessor"></span><span class="preprocessor">#define UNUSED_PARAMETER(X) UNUSED_VARIABLE(X)</span>
<a name="l00070"></a>00070 <span class="preprocessor"></span>
<a name="l00071"></a>00071 <span class="preprocessor">#endif // NORDIC_COMMON_H__</span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="nordic__common_8h.html">nordic_common.h</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">
      Copyright &copy 2006-2011 <a href="http://www.nordicsemi.no" style="text-decoration:none">Nordic Semiconductor</a>.
      All Rights Reserved.
      <a href="disclaimer.html">Disclaimer</a>
    </li>
   </ul>
 </div>


</body>
</html>
